import { createApp } from 'vue';
import App from './App.vue';
import i18nPlugin from './plugins/i18n.js';
import router from './router/index.ts';
import store from './store/index.js';

const app = createApp(App);
app.use(router);
app.use(store);
app.use(i18nPlugin, {
    greetings: {
        hello: 'Bonjour!',
        role: 'Tony',
    },
});
app.config.errorHandler = (err) => {
    console.log('errorHandler:', err);
};

app.provide('foo', 'app level foo');
app.mount('#app');
